Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parametrize the Slow Test class with two setups. #600

Merged
merged 11 commits into from
Jun 29, 2016

Conversation

kdexd
Copy link

@kdexd kdexd commented Jun 23, 2016

This PR introduces parametrization on the class for running Slow Integration tests. Prior to this PR the class did a test run using only Stratified W7 setup. Here, another setup is introduced alongwith W7 and test class executes using both of them.

Checklist for additions / improvements / cleanups :

  • Put config file, and abundances, densities profiles of AT setup besides W7 setup directory.
  • (Cleanup) - Remove config.option.tempdir as no longer required.
  • Modify data_path fixture to facilitate parametrization.
  • Modify the hierarchy of saving plots on DokuWiki.

❎ Manipulate ID of test method to be displayed on report to sort the test methods according to setup.

Latest report

Karan Desai added 8 commits June 23, 2016 08:36
- Plots were saved in this directory and taken up
  whenever needed.
- It returns a dict with two keys, 'config_dirpath'
  and 'reference_dirpath'.

- config_dirpath is the absolute path to directory
  holding the config file of a particular setup.

- reference_dirpath is absolute_dirpath to directory
  holding the reference data of corresponding setup.

- Both are provided by same fixture for better control
  in parametrization.
- The githash of particular report is formed
  as a namespace under the 'reports' namespace.

- Each figures will now be having name of setup
  prefixed in their image name.
- This method returns a list of names of directories
  in 'tests_slow' dir.

- This ensures inclusion of all the setups present
  in this directory and will not require change in
  source code.
@kdexd kdexd force-pushed the parametrize-w7-abn-tom branch from d4f743d to 625b7f9 Compare June 23, 2016 10:43
@@ -3,4 +3,6 @@ def get_package_data():
_ASTROPY_PACKAGE_NAME_ + '.tests': ['coveragerc', 'data/*.h5',
'data/*.dat', 'data/*.npy',
'tests_slow/w7/*.yml',
'tests_slow/w7/*.dat']}
'tests_slow/w7/*.dat',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does tests_slow/*/*.dat work?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, I kept it temporarily, time to cleanup ! ✔️

@wkerzendorf
Copy link
Member

@karandesai-96 @yeganer what is going on with this PR?

@wkerzendorf
Copy link
Member

are we done?

@kdexd
Copy link
Author

kdexd commented Jun 24, 2016

@wkerzendorf This is one point unchecked in this PR.

Manipulate ID of test method to be displayed on report to sort the test methods according to setup.

As we decided to keep it out of this PR, I am done here except any other comments for changes.
For the record, I am putting a green cross, as it is desired exclusion.

@pytest.fixture(scope="session")
def integration_tests_config(request):
return request.config.option.integration_tests_config
def setup_names():
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this not a fixture?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It throws an error, that a function is not iterable. I am still confused about a solution for it.

@kdexd kdexd force-pushed the parametrize-w7-abn-tom branch from de04feb to 5e04b78 Compare June 28, 2016 12:27
@@ -1 +1 @@
Subproject commit 244c9dd63d291f02c9cadc483d3a9e7a07c124c3
Subproject commit b856c6ed9c5c04f27d998a5ef4fe9d728a14ae82
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We might now want this in here.

@yeganer
Copy link
Contributor

yeganer commented Jun 28, 2016

If the latest comments are implemented we can merge.

@kdexd kdexd force-pushed the parametrize-w7-abn-tom branch from 5e04b78 to 035a1fa Compare June 28, 2016 13:55
@kdexd kdexd force-pushed the parametrize-w7-abn-tom branch from 035a1fa to c1f78e1 Compare June 28, 2016 14:16
@yeganer
Copy link
Contributor

yeganer commented Jun 28, 2016

@wkerzendorf @tardis-sn/tardis-core This PR is ready and can be merged.
Great job @karandesai-96 !

@wkerzendorf wkerzendorf merged commit fb2244a into tardis-sn:master Jun 29, 2016
@kdexd kdexd deleted the parametrize-w7-abn-tom branch June 29, 2016 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants